import pandas as pd
import numpy as np
from pathlib import Path

p = "F:\\图片"
a = Path(p)

all_file = [i for i in a.iterdir() if i.is_dir()]

print(all_file)